@import "../../styles/fn";
.ly-icon{
  display: inline-block;
  font-family: "ly-icon";
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
  vertical-align: middle;
  &.s-glyph25{
    &:before{
      display: block;
      content: "";
      width:15px;
      height:15px;
      background-image: url("./img/like_static.svg");
    }
  }

  &.s-glyph24{
    &:before{
      display: block;
      content: "";
      width:18px;
      height:18px;
      background-image: url("./img/like_1.svg");
    }
  }

  &.s-glyph26{
    &:before{
      display: block;
      content: "";
      width:18px;
      height:18px;
      background-image: url("./img/like_2.svg");
    }
  }
}
.project-index{
  display: none;
  position: relative;
  font-size: 0;
  text-align: left;
  margin: 15px auto 0px;
  &.on{
    display: block;
  }
  .project {
    display: inline-block;
    width:20%;
    text-align: center;
    .item{
      overflow: hidden;
      -moz-box-shadow: 0 1px 3px rgba(70,70,70,0.1),0 1px 2px rgba(70,70,70,0.1);
      -webkit-box-shadow: 0 1px 3px rgba(70,70,70,0.1), 0 1px 2px rgba(70,70,70,0.1);
      box-shadow: 0 1px 3px rgba(70,70,70,0.1), 0 1px 2px rgba(70,70,70,0.1);
      -moz-border-radius: 3px;
      -webkit-border-radius: 3px;
      border-radius: 3px;
      -moz-transition: all .3s cubic-bezier(.25, .8, .25, 1);
      -o-transition: all .3s cubic-bezier(.25, .8, .25, 1);
      -webkit-transition: all .3s cubic-bezier(.25, .8, .25, 1);
      transition: all .3s cubic-bezier(.25, .8, .25, 1);
      margin: 5px;
      .pic{
        position: relative;
        overflow: hidden;
        opacity: 1;
        border-bottom: 1px solid #f5f5f5;
        .m-img{
          background-color: #f5f5f5;
          width: 100%;
          position: relative;
          display: inline-block;
          height: 79.31034%;
        }
        &:hover{
          .like-btn{
            opacity: 1;
            right:30px;
          }
        }
      }
      .like-btn{
        width: 30px;
        height: 30px;
        position: absolute;
        right: 20px;
        top: 15px;
        cursor: pointer;
        background-color: #fff;
        -moz-border-radius: 50%;
        -webkit-border-radius: 50%;
        border-radius: 50%;
        opacity: 0;
        box-shadow: 0 1px 3px rgba(70,70,70,0.1), 0 1px 2px rgba(70,70,70,0.1);
        -moz-transform: translateX(15px);
        -ms-transform: translateX(15px);
        -webkit-transform: translateX(15px);
        transform: translateX(15px);
        -moz-transition: all .2s ease-in-out .3s;
        -o-transition: all .2s ease-in-out .3s;
        -webkit-transition: all .2s ease-in-out;
        -webkit-transition-delay: .3s;
        transition: all .2s ease-in-out .3s;
        i{
          color: #fe5a56;
          font-size: 18px;
          position: absolute;
          width:18px;
          height:18px;
          left: 50%;
          top: 50%;
          margin-left: -9px;
          margin-top: -10px;
          &.f{
            opacity: 0;
            -moz-transition: all .2s ease-in-out;
            -o-transition: all .2s ease-in-out;
            -webkit-transition: all .2s ease-in-out;
            transition: all .2s ease-in-out;
          }
        }
        &:hover{
          i{
            &.f{
              opacity: 1;
            }
          }
        }
      }
      .nature{
        left: 0;
        top: 0;
        position: absolute;
        width: 100%;
        height: 100%;
      }
      .bottom-btn{
        background-color: #fff;
        padding: 5px 10px 10px;
        text-align: justify;
        font-size: 0;
        .member{
          display: inline-block;
          vertical-align: middle;
          color: #323C47;
          font-size: 12px;
          -moz-transition: opacity .3s ease;
          -o-transition: opacity .3s ease;
          -webkit-transition: opacity .3s ease;
          transition: opacity .3s ease;
          width: 80%;
          height: 22px;
          .vcg_common_userAvatar{
            width:22px;
            height:22px;
          }
          span{
            display: inline-block;
            vertical-align: middle;
            font-weight: 500;
            height: 22px;
            line-height: 22px;
            padding-left: 30px;
          }
          .photo{
            display: inline-block;
            vertical-align: middle;
            width: 22px;
            height: 22px;
            border: 1px solid #f3f3f3;
            -moz-border-radius: 50%;
            -webkit-border-radius: 50%;
            border-radius: 50%;
            overflow: hidden;
            margin-right: 5px;
            position: absolute;
            >img{
              max-width: 100%;
              height: auto;
              -moz-border-radius: 50%;
              -webkit-border-radius: 50%;
              border-radius: 50%;
            }
          }
        }
        .datas{
          display: inline-block;
          //vertical-align: middle;
          margin-top: 4px;
          color: #859298;
          >div{
            display: inline-block;
            vertical-align: middle;
            font-size: 12px;
            padding: 0px 5px;
          }
          span{
            vertical-align: middle;
          }
          i{
            margin-right: 3px;
            font-size: 14px;
            vertical-align: middle;
            color: silver;
            -moz-transition: color .3s ease;
            -o-transition: color .3s ease;
            -webkit-transition: color .3s ease;
            transition: color .3s ease;
          }
        }
      }
      .dec{
        -moz-transition: opacity .3s ease-in-out;
        -o-transition: opacity .3s ease-in-out;
        -webkit-transition: opacity .3s ease-in-out;
        transition: opacity .3s ease-in-out;
        width: 100%;
        font-size: 0;
        margin-bottom: 13px;
        overflow: hidden;
        position: relative;
        .title{
          color: #323C47;
          font-size: 14px;
          font-weight: 600;
          height: 20px;
          word-wrap: break-word;
          margin: 0;
          @include lyby_ellipsis();
        }
        .m{
          text-align: left;
          vertical-align: bottom;
        }
      }
      .b{
        overflow: hidden;
        position: relative;
      }
    }
  }
  //@media only screen and (min-width: 430px){
  //  max-width: 660px;
  //  padding: 0px;
  //}
  //@media only screen and (min-width: 1024px){
  //  max-width: 960px;
  //  text-align: left;
  //}
  //@media only screen and (min-width: 1280px){
  //  max-width: 1280px;
  //}
}

@media (max-width: 780px){
  .project-index{
    .project{
      width: 50%;
      .item{
        .bottom-btn{
          .member{
            width:70%;
          }
        }
      }
    }
  }
}
